package com.mt.roll.wms.vo;

import com.mt.roll.core.vo.CommonVo;
import com.mt.roll.core.vo.PageVo;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Builder;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.experimental.Accessors;

import java.time.LocalDateTime;

/**
 * @auther yanyang
 * @date 2022/1/13 16:35
 */

@Data
@EqualsAndHashCode(callSuper = false)
@Accessors(chain = true)
@Builder
@ApiModel(value = "设备属性", description = "用于查询设备属性", parent = CommonVo.class)
public class EquipmentAttrVo extends CommonVo implements PageVo.ConvertVo{

    private static final long serialVersionUID = 1L;
    /**
     * 主键，自增
     */
    @ApiModelProperty(value = "主键", example = "1")
    private Long id;

    /**
     * 添加时间
     */
    @ApiModelProperty("create_time")
    private LocalDateTime createTime;

    /**
     * 更新时间
     */
    @ApiModelProperty("update_time")
    private LocalDateTime updateTime;

    /**
     * 设备外键
     */
    @ApiModelProperty(value = "equipment_id", example = "1")
    private Integer equipmentId;

    /**
     * 属性名
     */
    @ApiModelProperty(value = "attr_name",example = "属性1")
    private String attrName;

    /**
     * 属性值
     */
    @ApiModelProperty(value = "attr_content",example = "30")
    private String attrContent;

}
